package com.coolingme.general;

/**
 * 请求者
 *
 * @author wangyue
 * @date 2020-09-24 21:19
 */
public class Invoker {

    private ICommand command;

    public Invoker(ICommand command) {
        this.command = command;
    }

    public void action() {
        this.command.execute();
    }

}
